import request from '@/utils/request2'

// 查询BPM催办列表
export function listUrg(query) {
  return request({
    url: '/urg/urg/list',
    method: 'get',
    params: query
  })
}
export function metotUrg(query) {
  return request({
    url: '/urg/urg/list/meto',
    method: 'get',
    params: query
  })
}
export function toMetUrg(query) {
  return request({
    url: '/urg/urg/list/toMe',
    method: 'get',
    params: query
  })
}

// 查询BPM催办详细
export function getUrg(id) {
  return request({
    url: '/urg/urg/' + id,
    method: 'get'
  })
}

// 新增BPM催办
export function addUrg(data) {
  return request({
    url: '/urg/api',
    method: 'POST',
    data: data
  })
}

// 修改BPM催办
export function updateUrg(data) {
  return request({
    headers: {
      'Content-Type': 'application/json'
    },
    url: '/urg/urg/edit',
    method: 'POST',
    data: JSON.stringify(data)
  })
}

// 删除BPM催办
export function delUrg(id) {
  return request({
    url: '/urg/urg/remove/' + id,
    method: 'GET'
  })
}

// 导出BPM催办
export function exportUrg(query) {
  return request({
    url: '/urg/urg/export',
    method: 'get',
    params: query
  })
}
